package com.velthoven.umbraco4android;

public class UmbracoBaseService {
	private HttpService httpService;
	private String baseUrl;
	
	public UmbracoBaseService(String serverUrl)
	{
		httpService = new HttpService();
		baseUrl = "http://"
        	+ serverUrl
        	+ "/Base/UmbracoAndroid";
	}
	
	public boolean AuthenticateMember(String userName, String password)
	{
		String url = baseUrl + "/Login/"
    	+ userName
    	+ "/"
    	+ password
    	+ ".aspx";
		
		String response = httpService.Get(url);
		return Boolean.parseBoolean(response);
	}
}
